import { RouteRecordRaw } from "vue-router";

// 基础路由
export const BaseRouteList: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Layout",
    component: () => import("@/layout/index.vue"),
    redirect: "/organizationChart",
    children: [
      {
        path: "/:catchAll(.*)", // 不存在则返回404
        name: "NotFound",
        meta: {
          menuName: "404"
        },
        component: () => import("@/views/404.vue")
      },
      {
        path: "/401",
        name: "NoPromission",
        meta: {
          menuName: "401"
        },
        component: () => import("@/views/401.vue")
      }
    ]
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue")
  }
];
